import { Injectable } from '@angular/core';
// 115.159.5.34
@Injectable()
export class HosplistService {
  data: any;
  hospList: Hosp[];
  constructor() {
    this.hospList = [
      new Hosp(0, '重庆医科大学附属第二医院', '../assets/img/weui.png', '渝中区', [new HospType('三甲', '综合 ', 'red')]),
      new Hosp(1, '重庆市中医院(道门口)', '../assets/img/weui.png', '渝中区', [new HospType('三甲', '综合 ' , 'red')]),
      new Hosp(2, '重庆市肿瘤医院', '../assets/img/weui.png', '沙坪坝区' , [new HospType('三甲',  '专科', 'red')]),
      new Hosp(3, '重庆医科大学附属第一医院', '../assets/img/weui.png', '渝中区', [new HospType('三甲', '综合', 'red')]),
      new Hosp(4, '重庆市急救医疗中心', '../assets/img/weui.png', '渝中区', [new HospType('三甲', '综合', 'red')]),
      new Hosp(5, '重庆医科大学附属大学城医院', '../assets/img/weui.png', '沙坪坝区', [new HospType('二甲', '综合', 'red')]),
      new Hosp(6, '梁平县妇幼保健院', '../assets/img/weui.png', '梁平县', [new HospType('二甲', '综合', 'red')]),
      new Hosp(7, '重庆市荣昌区中医院', '../assets/img/weui.png', '', [new HospType('二甲', '综合', 'red')]),
      new Hosp(8, '重庆市第十三人民医院', '../assets/img/weui.png', '九龙坡区', [new HospType('二甲', '综合', 'red')])
      ];
  }

}

class Hosp {
  constructor(public hospId: number,
              public hospName: string,
              // public hospLocaltion: string,
              public hospIcon: string,
              public hospAddress: string,
              public hospType: HospType[]) {}
}

class HospType {
  constructor(public typeName: string,
              public typeRank: string,
              public typeColor: string,
              // public typeNature: string
              ) {}
}
